// 数组类型

const arr1: Array<number> = [1, 3, 5]

const arr2: number[] = [2, 4, 6]

function sum (args: number[]) {
    return args.reduce((pre, next) => pre + next, 0)
}

console.log(sum(arr2))
